package com.xtx.air.dao.feature.impl;

import com.xtx.air.dao.feature.IFeatureDAO;
import com.xtx.air.dataobject.FeatureDO;
import com.xtx.dao.BaseDAOImpl;

import java.util.List;

/**
 * User: hanyi
 * Date: 12-2-7
 * Time: 下午10:02
 */
public class FeatureDAOImpl extends BaseDAOImpl implements IFeatureDAO{
    @Override
    public List<FeatureDO> findALl() {
        return queryForList("SELECT-FEATURE-ALL",null);
    }

    @Override
    public List<String> findOperatorPermissionByRole(String roleName) {
        return queryForList("SELECT-PERMISSION-BY-ROLE",roleName);
    }
}
